package com.medical.app.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medical.app.entity.FloorIndex;

import java.util.List;

public interface FloorIndexMapper extends BaseMapper<FloorIndex> {
    default List<FloorIndex> selectByHospitalBuildingId(Long hospitalBuildingId){
        LambdaQueryWrapper<FloorIndex> queryWrapper = new LambdaQueryWrapper<FloorIndex>().eq(FloorIndex::getHospitalBuildingId,hospitalBuildingId);
        return this.selectList(queryWrapper);
    };
}